{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/header.html"}
<!--header stop-->
{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/common/headertitle.html"}
<!--header end-->
<section class="box-user">
    <img src="/images/stp2.png" width="100%" class="fl"/>
    <form method="post" target="_self"  name="entrust" id="entrust" action="/entrust/setpthree">
    <div class="purchase2">
        <input class="purchase_w2 pct" type="text" name="business_name" readonly ="readonly " value="{$conpanyinfo.business_name}"/>
        <input class="purchase_w2 pct" type="text" name="mobile" readonly ="readonly " value="{$conpanyinfo.mobile}"/>
        <input class="purchase_w2 pct" type="text" name="contacts" readonly ="readonly " value="{$conpanyinfo.contacts}"/>
        <p class="fwb pt10p pl10p">商品信息：</p>
        <div class="purchase">
            <textarea class="purchase_w1 pct1" id="content" name="content" placeholder="如:HDPE 7000F伊朗石化 20吨 9578元/吨 上海。"></textarea>
            </div>
    </div>
    <div class="purchase1">
        <input class="purchase_w4 up_but tac" type="button" value="上一步"/><input class="purchase_w5 btn_em tac" type="button" value="提交订单"/>
    </div>
       </form>
</section>

{literal}
<script type="text/javascript">
    $(function(){

        $(".up_but").click(function(){
            window.history.back();
        });


        $('.btn_em').click(function(){
            if(nEmpty($("#content"),'商品信息不能为空！','请输入合理的商品信息！','请输入合理的商品信息!','公司名称填写正确！')==false){
                return false;
            }else {
                document.getElementById("entrust").submit();
            }
        });


        function nEmpty(obj,txt1,txt2,txt3,txt4){
            Value = obj.val();
            if(Value==''){
                alert(txt1);
                return false;
            }else if(Value.length<10||Value.length>=200){
                alert(txt2);
                return false;
            }else if(!isNaN(obj.val())){
                alert(txt3);
                return false;
            }else{
                return true;
            }
        }


        $('#content').blur(function(){
            nEmpty($("#content"),'商品信息不能为空！','请输入合理的商品信息！','请输入合理的商品信息!','公司名称填写正确！')
        });


    });
</script>
{/literal}


{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/common/footerlogin.html"}

{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/footer.html"}
